package com.acquisition.entity;


import java.io.Serializable;

/**
 * 小时数据(与数据库HourData表对应，用于存储)
 *
 * @author wuqiwei
 * @date 2021/01/31
 */

public class HourData implements Serializable {

	/**
	 * 自增id
	 */

	private Integer id;

	/**
	 * 请求编号
	 */
	private String qn;

	/**
	 * 系统编号
	 */

	private String st;

	/**
	 * 命令编号
	 */
	private String cn;

	/**
	 * 访问密码
	 */
	private String pw;

	/**
	 * 设备唯一标识
	 */
	private String mn;

	/**
	 * 数据时间信息yyyyMMddHHmmss，表示一个时间段的开始时间点
	 */
	private Long dataTime;

	/**
	 * 监测因子数据的json字符串
	 */
	private String otherMonitorFactorMapJSONString;

	/**
	 * 该条数据是否上传到服务器1：1-已上传，0-未上传
	 */
	private Integer uploadFlag1;

	/**
	 * 该条数据是否上传到服务器2：1-已上传，0-未上传
	 */
	private Integer uploadFlag2;

	/**
	 * 该条数据是否上传到服务器3：1-已上传，0-未上传
	 */
	private Integer uploadFlag3;

	/**
	 * 该条数据是否上传到服务器4：1-已上传，0-未上传
	 */
	private Integer uploadFlag4;

	public HourData() {
		super();
	}

	public HourData(Integer id, String qn, String st, String cn, String pw, String mn, Long dataTime,
                    String otherMonitorFactorMapJSONString, Integer uploadFlag1, Integer uploadFlag2, Integer uploadFlag3,
                    Integer uploadFlag4) {
		super();
		this.id = id;
		this.qn = qn;
		this.st = st;
		this.cn = cn;
		this.pw = pw;
		this.mn = mn;
		this.dataTime = dataTime;
		this.otherMonitorFactorMapJSONString = otherMonitorFactorMapJSONString;
		this.uploadFlag1 = uploadFlag1;
		this.uploadFlag2 = uploadFlag2;
		this.uploadFlag3 = uploadFlag3;
		this.uploadFlag4 = uploadFlag4;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getQn() {
		return qn;
	}

	public void setQn(String qn) {
		this.qn = qn;
	}

	public String getSt() {
		return st;
	}

	public void setSt(String st) {
		this.st = st;
	}

	public String getCn() {
		return cn;
	}

	public void setCn(String cn) {
		this.cn = cn;
	}

	public String getPw() {
		return pw;
	}

	public void setPw(String pw) {
		this.pw = pw;
	}

	public String getMn() {
		return mn;
	}

	public void setMn(String mn) {
		this.mn = mn;
	}

	public Long getDataTime() {
		return dataTime;
	}

	public void setDataTime(Long dataTime) {
		this.dataTime = dataTime;
	}

	public String getOtherMonitorFactorMapJSONString() {
		return otherMonitorFactorMapJSONString;
	}

	public void setOtherMonitorFactorMapJSONString(String otherMonitorFactorMapJSONString) {
		this.otherMonitorFactorMapJSONString = otherMonitorFactorMapJSONString;
	}

	public Integer getUploadFlag1() {
		return uploadFlag1;
	}

	public void setUploadFlag1(Integer uploadFlag1) {
		this.uploadFlag1 = uploadFlag1;
	}

	public Integer getUploadFlag2() {
		return uploadFlag2;
	}

	public void setUploadFlag2(Integer uploadFlag2) {
		this.uploadFlag2 = uploadFlag2;
	}

	public Integer getUploadFlag3() {
		return uploadFlag3;
	}

	public void setUploadFlag3(Integer uploadFlag3) {
		this.uploadFlag3 = uploadFlag3;
	}

	public Integer getUploadFlag4() {
		return uploadFlag4;
	}

	public void setUploadFlag4(Integer uploadFlag4) {
		this.uploadFlag4 = uploadFlag4;
	}

	@Override
	public String toString() {
		return "HourDataPO [id=" + id + ", qn=" + qn + ", st=" + st + ", cn=" + cn + ", pw=" + pw + ", mn=" + mn
				+ ", dataTime=" + dataTime + ", otherMonitorFactorMapJSONString=" + otherMonitorFactorMapJSONString
				+ ", uploadFlag1=" + uploadFlag1 + ", uploadFlag2=" + uploadFlag2 + ", uploadFlag3=" + uploadFlag3
				+ ", uploadFlag4=" + uploadFlag4 + "]";
	}

}
